import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/appStore/appStore'
import settings from './modules/settingsStore/settings'
import userStore from '@/store/modules/userStore/userStore'
import employeeStore from '@/store/modules/employeeStore/employeeStore'
import categoryStore from '@/store/modules/categoryStore/categoryStore'
import dishStore from '@/store/modules/dishStore/dishStore'
import uploadStore from '@/store/modules/uploadStore/uploadStore'
import setmalStore from '@/store/modules/setmalStore/setmalStore'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    userStore,
    employeeStore,
    categoryStore,
    dishStore,
    uploadStore,
    setmalStore
  },
  getters
})

export default store
